package com.lmexpress.orm.ktswebservice;

public class SfKtsServiceProxy implements com.lmexpress.orm.ktswebservice.SfKtsService {
	private String _endpoint = null;

	private com.lmexpress.orm.ktswebservice.SfKtsService sfKtsService = null;

	public SfKtsServiceProxy() {
		_initSfKtsServiceProxy();
	}

	public SfKtsServiceProxy(String endpoint) {
		_endpoint = endpoint;
		_initSfKtsServiceProxy();
	}

	private void _initSfKtsServiceProxy() {
		try {
			sfKtsService = (new com.lmexpress.orm.ktswebservice.impl.SfKtsServiceImplServiceLocator()).getSfKtsServiceImplPort();
			if (sfKtsService != null) {
				if (_endpoint != null)
					((javax.xml.rpc.Stub) sfKtsService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
				else
					_endpoint = (String) ((javax.xml.rpc.Stub) sfKtsService)._getProperty("javax.xml.rpc.service.endpoint.address");
			}

		} catch (javax.xml.rpc.ServiceException serviceException) {
		}
	}

	public String getEndpoint() {
		return _endpoint;
	}

	public void setEndpoint(String endpoint) {
		_endpoint = endpoint;
		if (sfKtsService != null)
			((javax.xml.rpc.Stub) sfKtsService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

	}

	public com.lmexpress.orm.ktswebservice.SfKtsService getSfKtsService() {
		if (sfKtsService == null)
			_initSfKtsServiceProxy();
		return sfKtsService;
	}

	public java.lang.String sfKtsService(java.lang.String xml, java.lang.String verifyCode) throws java.rmi.RemoteException {
		if (sfKtsService == null)
			_initSfKtsServiceProxy();
		return sfKtsService.sfKtsService(xml, verifyCode);
	}
}